export ARCH=arm64#设置平台架构
export CROSS_COMPILE=aarch64-linux-gnu-#交叉编译器前缀
obj-m := mathmodule.o
obj-m += hello.o
KDIR = /home/robin/work/kernel-rockchip-nanopi4-linux-v4.4.y                                                                                                                  
PWD ?= $(shell pwd)
all:
	make -C $(KDIR) M=$(PWD) modules    #make操作
clean:
	make -C $(KDIR) M=$(PWD) clean    #make clean操作


install:
	scp *.ko $(APP) root@192.168.107.61:/drv_code